// 设备 - 连接方式
export const connectTypeDict = [
  {
    value: "1",
    label: "明炀IOT"
  },
  {
    value: "2",
    label: "华控IOT"
  }
]

export const dataTypeDict = [
  {
    value: 'SHORT',
    label: 'SHORT',
  },
  {
    value: 'INTEGER',
    label: 'INTEGER',
  },
  {
    value: 'LONG',
    label: 'LONG',
  },
  {
    value: 'FLOAT',
    label: 'FLOAT',
  },
  {
    value: 'DOUBLE',
    label: 'DOUBLE',
  },
  {
    value: 'TIME',
    label: 'TIME',
  },
  {
    value: 'BOOLEAN',
    label: 'BOOLEAN',
  },
  {
    value: 'STRING',
    label: 'STRING',
  },
]

export const outputDataTypeDict = [
  {
    "id": "1821062148569071618",
    "feature": 0,
    "name": "MQTT",
    "kind": "SYSTEM",
    "type": "APP",
    "version": "1.0.0",
    "jarPath": "iot-mqtt-pre-1.0.0.jar",
    "content": "{\r\n  \"clientId\": {\r\n    \"name\": \"Client ID\",\r\n    \"nameZh\": \"客户端 ID\",\r\n    \"description\": \"MQTT client id\",\r\n    \"descriptionZh\": \"MQTT 客户端 ID\",\r\n    \"type\": \"string\",\r\n    \"attribute\": \"required\",\r\n    \"default\": \"iot_mqtt\",\r\n    \"valid\": {\r\n      \"length\": 255\r\n    }\r\n  },\r\n  \"qos\": {\r\n    \"name\": \"QoS Level\",\r\n    \"nameZh\": \"QoS 等级\",\r\n    \"description\": \"MQTT QoS level for message delivery\",\r\n    \"descriptionZh\": \"MQTT 消息传输使用的服务质量等级\",\r\n    \"type\": \"select\",\r\n    \"attribute\": \"required\",\r\n    \"default\": 0,\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"QoS 0\",\r\n          \"value\": 0\r\n        },\r\n        {\r\n          \"label\": \"QoS 1\",\r\n          \"value\": 1\r\n        },\r\n        {\r\n          \"label\": \"QoS 2\",\r\n          \"value\": 2\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"format\": {\r\n    \"name\": \"Upload Format\",\r\n    \"nameZh\": \"上报数据格式\",\r\n    \"description\": \"JSON or String format\",\r\n    \"descriptionZh\": \"上报数据 JSON或字符串格式。\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"select\",\r\n    \"default\": \"JSON\",\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"JSON\",\r\n          \"value\": \"JSON\"\r\n        },\r\n        {\r\n          \"label\": \"字符串\",\r\n          \"value\": \"STR\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"host\": {\r\n    \"name\": \"Broker Host\",\r\n    \"nameZh\": \"服务器地址\",\r\n    \"description\": \"MQTT broker host\",\r\n    \"descriptionZh\": \"MQTT 服务器地址\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"string\",\r\n    \"default\": \"broker.emqx.io\",\r\n    \"valid\": {\r\n      \"regex\": \"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$\"\r\n    }\r\n  },\r\n  \"port\": {\r\n    \"name\": \"Broker Port\",\r\n    \"nameZh\": \"服务器端口\",\r\n    \"description\": \"MQTT broker port\",\r\n    \"descriptionZh\": \"MQTT 服务器端口\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"int\",\r\n    \"default\": 1883,\r\n    \"valid\": {\r\n      \"min\": 1024,\r\n      \"max\": 65535\r\n    }\r\n  },\r\n  \"username\": {\r\n    \"name\": \"Username\",\r\n    \"nameZh\": \"用户名\",\r\n    \"description\": \"MQTT user name\",\r\n    \"descriptionZh\": \"MQTT 用户名\",\r\n    \"attribute\": \"optional\",\r\n    \"type\": \"string\",\r\n    \"default\": \"\",\r\n    \"valid\": {\r\n      \"length\": 255\r\n    }\r\n  },\r\n  \"password\": {\r\n    \"name\": \"Password\",\r\n    \"nameZh\": \"密码\",\r\n    \"description\": \"MQTT user password\",\r\n    \"descriptionZh\": \"MQTT 用户密码\",\r\n    \"attribute\": \"optional\",\r\n    \"type\": \"string\",\r\n    \"default\": \"\",\r\n    \"valid\": {\r\n      \"length\": 255\r\n    }\r\n  },\r\n  \"iotNextConfig\": {\r\n    \"R\": {\r\n      \"topic\": {\r\n        \"name\": \"topic\",\r\n        \"nameZh\": \"发送主题\",\r\n        \"description\": \"Send to topics\",\r\n        \"descriptionZh\": \"发送主题\",\r\n        \"attribute\": \"required\",\r\n        \"type\": \"string\"\r\n      },\r\n      \"interval\": {\r\n        \"name\": \"interval\",\r\n        \"nameZh\": \"发送间隔\",\r\n        \"description\": \"Send reading instruction interval(s)\",\r\n        \"descriptionZh\": \"发送时间间隔，单位为秒\",\r\n        \"type\": \"int\",\r\n        \"default\": 0,\r\n        \"valid\": {\r\n          \"min\": 0,\r\n          \"max\": 3000\r\n        }\r\n      }\r\n    },\r\n    \"W\": {\r\n      \"topic\": {\r\n        \"name\": \"topic\",\r\n        \"nameZh\": \"订阅主题\",\r\n        \"description\": \"Subscribe to topics\",\r\n        \"descriptionZh\": \"订阅主题\",\r\n        \"attribute\": \"required\",\r\n        \"type\": \"string\"\r\n      }\r\n    }\r\n  }\r\n}\r\n",
    "source": null,
    "description": "基于 IotSDK 的北向应用 MQTT 插件",
    "updateTime": "2025-01-21 06:00:12",
    "createTime": "2024-08-07 13:53:44"
  },
  {
    "id": "1825420284377649154",
    "feature": 0,
    "name": "UDP",
    "kind": "SYSTEM",
    "type": "APP",
    "version": "1.0.0",
    "jarPath": "iot-websocket-pre-1.0.0.jar",
    "content": "{\r\n  \"ConnectionType\": {\r\n    \"name\": \"Connection Mode\",\r\n    \"nameZh\": \"连接模式\",\r\n    \"description\": \"As the client, or as the server\",\r\n    \"descriptionZh\": \"客户端或服务端\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"select\",\r\n    \"default\": \"Client\",\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"客户端\",\r\n          \"value\": \"Client\"\r\n        },\r\n        {\r\n          \"label\": \"服务端\",\r\n          \"value\": \"Server\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"format\": {\r\n    \"name\": \"Upload Format\",\r\n    \"nameZh\": \"上报数据格式\",\r\n    \"description\": \"JSON or String format\",\r\n    \"descriptionZh\": \"上报数据 JSON或字符串格式。\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"select\",\r\n    \"default\": \"JSON\",\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"JSON\",\r\n          \"value\": \"JSON\"\r\n        },\r\n        {\r\n          \"label\": \"字符串\",\r\n          \"value\": \"STR\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"url\": {\r\n    \"name\": \"Broker Host\",\r\n    \"nameZh\": \"服务器地址\",\r\n    \"description\": \"broker host\",\r\n    \"descriptionZh\": \"服务器地址\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"string\",\r\n    \"default\": \"ws://127.0.0.1\",\r\n    \"valid\": {\r\n      \"length\": 255\r\n    }\r\n  }\r\n}",
    "source": null,
    "description": "北向应用 WebSocket 插件",
    "updateTime": "2025-01-21 06:01:26",
    "createTime": "2024-08-19 06:31:25"
  },
  {
    "id": "1825420284377649153",
    "feature": 0,
    "name": "TCP",
    "kind": "SYSTEM",
    "type": "APP",
    "version": "1.0.0",
    "jarPath": "iot-websocket-pre-1.0.0.jar",
    "content": "{\r\n  \"ConnectionType\": {\r\n    \"name\": \"Connection Mode\",\r\n    \"nameZh\": \"连接模式\",\r\n    \"description\": \"As the client, or as the server\",\r\n    \"descriptionZh\": \"客户端或服务端\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"select\",\r\n    \"default\": \"Client\",\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"客户端\",\r\n          \"value\": \"Client\"\r\n        },\r\n        {\r\n          \"label\": \"服务端\",\r\n          \"value\": \"Server\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"format\": {\r\n    \"name\": \"Upload Format\",\r\n    \"nameZh\": \"上报数据格式\",\r\n    \"description\": \"JSON or String format\",\r\n    \"descriptionZh\": \"上报数据 JSON或字符串格式。\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"select\",\r\n    \"default\": \"JSON\",\r\n    \"valid\": {\r\n      \"select\": [\r\n        {\r\n          \"label\": \"JSON\",\r\n          \"value\": \"JSON\"\r\n        },\r\n        {\r\n          \"label\": \"字符串\",\r\n          \"value\": \"STR\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"url\": {\r\n    \"name\": \"Broker Host\",\r\n    \"nameZh\": \"服务器地址\",\r\n    \"description\": \"broker host\",\r\n    \"descriptionZh\": \"服务器地址\",\r\n    \"attribute\": \"required\",\r\n    \"type\": \"string\",\r\n    \"default\": \"ws://127.0.0.1\",\r\n    \"valid\": {\r\n      \"length\": 255\r\n    }\r\n  }\r\n}",
    "source": null,
    "description": "北向应用 WebSocket 插件",
    "updateTime": "2025-01-21 06:01:26",
    "createTime": "2024-08-19 06:31:25"
  },
]